package cn.zhujs.org.mapper;

import cn.zhujs.basic.util.PageList;
import cn.zhujs.org.domain.Department;
import cn.zhujs.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //保存
    void save(Department department);
    //删除
    void delete(Long id);
    //修改
    void update(Department department);
    //查询一条数据
    Department loadById(Long id);
    //查询所有数据
    List<Department> loadAll();
    //查询总条数
    Long queryCount(DepartmentQuery departmentQuery);
    //查询当前页的数据
    List<Department> queryData(DepartmentQuery departmentQuery);

    //分页查询
    PageList<Department> queryPage(DepartmentQuery departmentQuery);
}
